//
// Created by 89237 on 2020/6/8.
//

#include "jni.h"
#include <cwchar>

#ifndef LIVEPUSHER_CALLJAVA_H
#define LIVEPUSHER_CALLJAVA_H

#define WQ_THREAD_MAIN 1
#define WQ_THREAD_CHILD 2
class CallJava {

public:
    JNIEnv *jniEnv = NULL;
    JavaVM *javaVM = NULL;
    jobject jobj;

    jmethodID jmid_connecting;
    jmethodID jmid_connectsuccess;
    jmethodID jmid_connectfail;

public:
    CallJava(JavaVM *javaVM, JNIEnv *jniEnv, jobject *jobj);
    ~CallJava();

    void onConnectint(int type);

    void onConnectsuccess();

    void onConnectFail(char *msg);
};


#endif //LIVEPUSHER_CALLJAVA_H
